
$(function(){
    // x4
    ;(function($){
        var aXList=$('#xUlList li');
        var aXListSH=$('.xDL');

        aXList.click(function(){
            aXList.removeClass('xShowList');
            aXListSH.hide();
            $(this).addClass('xShowList');
            aXListSH.eq($(this).index()).show();
        });

        aXList.mouseover(function(){
            $(this).find('p').css({
                'color':'#000'
            });
        });
        aXList.mouseout(function(){
            $(this).find('p').css({
                'color':'#606060'
            });
        });
    })(jQuery);
    //通信科技/通信
    (function($){
        var size = 7;
        var name = "communication_technology";

        geetdata("hxclub/article/pagelist.do", {
            cid:101,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont", "x4Cont_list", name, false, function(){
            initPagination(name);
        });

        function initPagination(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'communication_technology', 'hxclub/article/pagelist.do', '#x4Cont', 'x4Cont_list', false, null);
            return false;
        }
    })(jQuery);
    //消费品
    (function($){
        var size = 7;
        var name = "consumer_goods";

        geetdata("hxclub/article/pagelist.do", {
            cid:102,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont1", "x4Cont_list1", name, false, function(){
            initPagination1(name);
        });

        function initPagination1(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination1").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback1,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback1(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'consumer_goods', 'hxclub/article/pagelist.do', '#x4Cont1', 'x4Cont_list1', false, null);
            return false;
        }
    })(jQuery);
    //制造业
    (function($){
        var size = 7;
        var name = "manufacturing";

        geetdata("hxclub/article/pagelist.do", {
            cid:103,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont2", "x4Cont_list2", name, false, function(){
            initPagination2(name);
        });

        function initPagination2(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination2").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback2,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback2(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'manufacturing', 'hxclub/article/pagelist.do', '#x4Cont2', 'x4Cont_list2', false, null);
            return false;
        }
    })(jQuery);
    //房地产
    (function($){
        var size = 7;
        var name = "estate";

        geetdata("hxclub/article/pagelist.do", {
            cid:104,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont3", "x4Cont_list3", name, false, function(){
            initPagination3(name);
        });

        function initPagination3(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination3").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback3,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback3(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'estate', 'hxclub/article/pagelist.do', '#x4Cont3', 'x4Cont_list3', false, null);
            return false;
        }
    })(jQuery);
    //金融
    (function($){
        var size = 7;
        var name = "finance";

        geetdata("hxclub/article/pagelist.do", {
            cid:105,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont4", "x4Cont_list4", name, false, function(){
            initPagination4(name);
        });

        function initPagination4(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination4").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback4,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback4(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'finance', 'hxclub/article/pagelist.do', '#x4Cont4', 'x4Cont_list4', false, null);
            return false;
        }
    })(jQuery);
    //商业服务
    (function($){
        var size = 7;
        var name = "business_service";

        geetdata("hxclub/article/pagelist.do", {
            cid:106,
            status:1,
            pageNo:1,
            pageSize:size
        }, "#x4Cont5", "x4Cont_list5", name, false, function(){
            initPagination5(name);
        });

        function initPagination5(name) {
            //var value = $.cookie(name);
            var value = $.cookie(name);
            var opation = JSON.parse(value);
            var num_entries = opation.total; // $("#hiddenresult div.result").length;
            // 创建分页
            //$().pagination()
            $("#Pagination5").pagination(num_entries, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 5, //主体页数
                callback: pageselectCallback5,
                items_per_page: size, //每页显示1项
                prev_text:'上一页',
                next_text:'下一页',
                num_edge_entries:true
            });
        }
        function pageselectCallback5(page_index, jq) {
            //console.info(jq);
            toPage(page_index+1,'business_service', 'hxclub/article/pagelist.do', '#x4Cont5', 'x4Cont_list5', false, null);
            return false;
        }
    })(jQuery);
});






















